<?php
//echo'<a class="plugin" href="index2.php?site=',$site,'&plugin=',$s[0],'&page=',$s[0],'">',$s[0],'</a>';

$sfilename='../sites/test/test.htm';
//$js=1;
?><a href="<?php echo$sfilename; ?>" target="_new">show in a new browser (tab)</a><?php
if(!$db){ include'plugin/base/.db/connect.php'; }
/*

META
'<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/>',
'<meta name="description" content=""/>', //SEO
'<meta name="revisit-after" content="7 days"/>', //??
'<meta http-equiv="Expires" content="Tue, 20 Jun 1995 04:13:09 GMT"/>', cache!
'<meta http-equiv="pragma" content="no-cache"/>',
'<meta http-equiv="content-language" content="en-us"/>', //language
'<meta http-equiv="window-target" content="_top"/>', //block iframes
'<meta name="robots" content="noodp,noindex,nofollow,noarchive,noodp,noydir,nosnippet"/>', //SEO

optional
'<meta name="generator" content="sitegeist"/>', //minor search engines
'<meta name="abstract" content=""/>', //short description,minor search engines
'<meta name="keywords" content=""/>', //minor search engines
'<meta name="author" content=""/>', //minor search engines
'<meta name="copyright" content=""/>', //minor search engines
'<meta name="rating" content=""/>', //minor search engines
//Keyword1 - Keyword2 - Keyword3 
'<meta name="title" content=""/>', //minor search engines
'<meta name="distribution" content="global"/>', //hmmm
'<meta name="distribution" content="local"/>', //hmmm

'<meta http-equiv="X-UA-Compatible" content="IE=8;FF=3;OtherUA=4"/>', //tja
'<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>', //tja
*/


//put limit on shared parameters with a stored counter
//bvb cdata_js flags >>> +/- 1

/*/$table=\'site\';
$field=\'title\';
include\'db/query/str/echo.php\';*/


$title='';








//if(!isset($db))include'plugin/base/.db/connect.php';
//require_once'plugin/base/.plugins/showplugins.php';


ob_start();
echo'<!doctype html><?php session_start(); ?><html><head><meta charset="utf-8"/>','','
<title>',$title,'</title>';
?>
<style type="text/css" media="screen"><?php
$field='screen styles';
//include'plugin/base/.db/query/funk.php';
?></style>
<style type="text/css" media="print"><?php
$field='print styles';
//include'plugin/base/.db/query/str/echo.php';
?></style>
</head><body><?php
function showplugins($s){
	global $db,$site;
	$plugin=$s[0]; $tag=$s[1];
	include"plugin/$plugin/.show/show.php";
}

$funk='showplugins';
$table=$site.'_plugins';
$cols=array('name','tag');
$empty='no plugins<br/>';

include'plugin/base/.db/query/funk.php';


//include'plugin/article/.view/list.php';

if(isset($js)){
?><script type="text/javascript"><?php
	echo isset($cdata_js)?'//<![CDATA[':'';
?>
alert("xx");
<?php
	echo isset($cdata_js)?'//]]>':'';
?></script><?php
}

echo'</body></html>';

$html=ob_get_contents(); file_put_contents($sfilename,$html); ob_end_clean();

/*ob_start("callback");
inchlude'php/cache'
if your nqme is ,qrnix qnd you are jealus u dont hv site name; email me, i put profiles
if sum steqls qcces sum of u cqn auit plyn zoz qnd free our name
*/
?>
<iframe src="<?php echo$sfilename; ?>" width=1000 height=300></iframe>
<textarea rows="30" cols="80"><?php echo htmlentities($html); ?></textarea>